package com.fouram.agent.util;

/**
 * 
 * MethodExecuteJSONformatter
 * 
 * @description 2.0.0
 * @author fouram
 */
public class StringBuilderUtils {

    public static StringBuilder appendString(StringBuilder jsonBuilder, String key, String value) {
        return appendKey(jsonBuilder, key).append("\"").append(value).append("\"");
    }

    public static StringBuilder appendLong(StringBuilder jsonBuilder, String key, long value) {
        return appendKey(jsonBuilder, key).append(value);
    }

    public static StringBuilder appendKey(StringBuilder jsonBuilder, String key) {
        return jsonBuilder.append("\"").append(key).append("\":");
    }
}
